package com.dataStructure.栈;

public class Main_Stack {
    public static void main(String[] args) {
        Stack_通过继承ArrayList<Integer> stack = new Stack_通过继承ArrayList<>();
        stack.push(11);
        stack.push(12);
        stack.push(13);
        stack.push(14);

        while (!stack.isEmpty()){
            System.out.println(stack.pop());
        }
//        java.util.Stack; java官方的stack，继承自vector
    }
}
